package com.gr.dmbackend.controller.sysadmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.sysadmin.GetBuildingListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetBuildingListController {

    @Autowired
    private GetBuildingListService getBuildingListService;

    @GetMapping("/api/sysadmin/get-buildinglist")
    public JSONObject getBuildingList() {
        return getBuildingListService.getBuildingList();
    }

}
